<template>
    <div>
      <NuxtLink :to="'detail/' + item.id"  v-for="item in  data" :key="item.id">
        <a-card  :title="item.title" style="width: 80vw; margin: 20px auto">
      {{ item.updateAt }}
    </a-card>
      </NuxtLink>
    </div>
  </template>
  <script lang="ts" setup>
import { requestList } from '~~/api/api';


  definePageMeta({
    ssr: false,
    layout: 'default'
  })
  //  // lazy - 是否在路由之后才请求数据，server - 是否在服务端请求数据
  const {
  data, // 返回的数据
} = useAsyncData('index-1', () => requestList(),  { lazy: false, server: false })
  </script>
  